package com.ruoyi.chengkao.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.chengkao.mapper.CkAdmissionCategoryMapper;
import com.ruoyi.chengkao.domain.CkAdmissionCategory;
import com.ruoyi.chengkao.service.ICkAdmissionCategoryService;

/**
 * 招生类别信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class CkAdmissionCategoryServiceImpl implements ICkAdmissionCategoryService 
{
    @Autowired
    private CkAdmissionCategoryMapper ckAdmissionCategoryMapper;

    /**
     * 查询招生类别信息
     * 
     * @param id 招生类别信息主键
     * @return 招生类别信息
     */
    @Override
    public CkAdmissionCategory selectCkAdmissionCategoryById(Long id)
    {
        return ckAdmissionCategoryMapper.selectCkAdmissionCategoryById(id);
    }

    /**
     * 查询招生类别信息列表
     * 
     * @param ckAdmissionCategory 招生类别信息
     * @return 招生类别信息
     */
    @Override
    public List<CkAdmissionCategory> selectCkAdmissionCategoryList(CkAdmissionCategory ckAdmissionCategory)
    {
        return ckAdmissionCategoryMapper.selectCkAdmissionCategoryList(ckAdmissionCategory);
    }

    /**
     * 查询全部招生类别信息列表
     *
     * @return 招生类别信息
     */
    @Override
    public List<CkAdmissionCategory> selectCkAdmissionCategoryAll() {
        return ckAdmissionCategoryMapper.selectCkAdmissionCategoryAll();
    }


    /**
     * 新增招生类别信息
     * 
     * @param ckAdmissionCategory 招生类别信息
     * @return 结果
     */
    @Override
    public int insertCkAdmissionCategory(CkAdmissionCategory ckAdmissionCategory)
    {
        return ckAdmissionCategoryMapper.insertCkAdmissionCategory(ckAdmissionCategory);
    }

    /**
     * 修改招生类别信息
     * 
     * @param ckAdmissionCategory 招生类别信息
     * @return 结果
     */
    @Override
    public int updateCkAdmissionCategory(CkAdmissionCategory ckAdmissionCategory)
    {
        return ckAdmissionCategoryMapper.updateCkAdmissionCategory(ckAdmissionCategory);
    }

    /**
     * 批量删除招生类别信息
     * 
     * @param ids 需要删除的招生类别信息主键
     * @return 结果
     */
    @Override
    public int deleteCkAdmissionCategoryByIds(Long[] ids)
    {
        return ckAdmissionCategoryMapper.deleteCkAdmissionCategoryByIds(ids);
    }

    /**
     * 删除招生类别信息信息
     * 
     * @param id 招生类别信息主键
     * @return 结果
     */
    @Override
    public int deleteCkAdmissionCategoryById(Long id)
    {
        return ckAdmissionCategoryMapper.deleteCkAdmissionCategoryById(id);
    }
}
